package com.cmwa.scbp.business.postMaintenance.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cmwa.scbp.base.annotation.MybatisDao;
import com.cmwa.scbp.base.mvc.entity.SearchParam;
import com.cmwa.scbp.business.postMaintenance.entity.PostPersonnelInfoVo;

/**
 * 岗位-人员-资源信息表数据访问层
 * 
 * @author ex-sujh
 * @date 2019-02-26 10:12:33
 */
@MybatisDao
public interface PostPersonnelInfoDao {

	
	public void insertPostPersonnelInfo(PostPersonnelInfoVo postPersonnelInfo);
	
		
		
	public void physicDeletePostPersonnelInfoById(@Param("id") String id);
	
		
		
	public void logicDeletePostPersonnelInfoById(@Param("id") String id);
	
		
		
	public void updatePostPersonnelInfoById(PostPersonnelInfoVo postPersonnelInfo);
	
		
		
	public List<PostPersonnelInfoVo> postPersonnelInfoListPage(SearchParam sp);
	
	
		
	public PostPersonnelInfoVo getPostPersonnelInfoById(@Param("id") String id);
	
	
	/** 查询资源对应的人员列表 */
	List<PostPersonnelInfoVo> queryResourceIds(SearchParam sp);
	
	/** 根据资源ID和岗位ID批量删除 */
	void batchDeletePostPersonnelInfo(List<PostPersonnelInfoVo> postPersonnelInfoList);
	
	/** 批量新增 */
	void batchInsert(List<PostPersonnelInfoVo> list);
	
	List<PostPersonnelInfoVo> queryPersonnelInfoList(@Param("postCode")String postCode, @Param("resourceId")String resourceId);
}
